package com.baidu.proxyDemo;

public class UserServiceImpl implements UserService{

    @Override
    public String save(String name, String time) {
        try {
            Thread.sleep(1000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "姓名" + name + "在" + time + "保存成功";
    }

    @Override
    public void delete() {
        try {
            Thread.sleep(1000);
        } catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("删除成功");
    }

    @Override
    public String selectAll() {
        try {
            Thread.sleep(1000);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "获取全部学生信息";
    }
}
